var sidebar = 
{
  toggle:function(id_arrow, id_list, height){
          arrow = document.getElementById(id_arrow);
          list = document.getElementById(id_list);
          current_setting = list.style.display;

          if (current_setting == 'none')
          {
            list.style.display ='block';
            arrow.style.backgroundPosition = '0px 0px';
            if (id_list == "text"){
              document.getElementById('entry').style.display = 'block';
            }
          }
          else {
            list.style.display ='none';
            
            arrow.style.backgroundPosition = '20px 0px';
            if (id_list == "text"){
              document.getElementById('entry').style.display = 'none';
            }
          }
       }
}

